//
// NeL - bindings
// Copyright (C) 2010 Naush
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU Affero General Public License as
//published by the Free Software Foundation, either version 3 of the
//License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU Affero General Public License for more details.
//
//You should have received a copy of the GNU Affero General Public License
//along with this program.  If not, see <http://www.gnu.org/licenses/>.

package org.ryzom.nel.misc;

public class CMemDisplayer extends IDisplayer {
  private long swigCPtr;

  public CMemDisplayer(long cPtr, boolean cMemoryOwn) {
    super(nelmiscJNI.CMemDisplayer_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CMemDisplayer obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nelmiscJNI.delete_CMemDisplayer(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public CMemDisplayer(String displayerName) {
    this(nelmiscJNI.new_CMemDisplayer__SWIG_0(displayerName), true);
  }

  public CMemDisplayer() {
    this(nelmiscJNI.new_CMemDisplayer__SWIG_1(), true);
  }

  public void setParam(long maxStrings) {
    nelmiscJNI.CMemDisplayer_setParam__SWIG_0(swigCPtr, this, maxStrings);
  }

  public void setParam() {
    nelmiscJNI.CMemDisplayer_setParam__SWIG_1(swigCPtr, this);
  }

  public void write(CLog log, boolean quiet) {
    nelmiscJNI.CMemDisplayer_write__SWIG_0(swigCPtr, this, CLog.getCPtr(log), log, quiet);
  }

  public void write(CLog log) {
    nelmiscJNI.CMemDisplayer_write__SWIG_1(swigCPtr, this, CLog.getCPtr(log), log);
  }

  public void write() {
    nelmiscJNI.CMemDisplayer_write__SWIG_2(swigCPtr, this);
  }

  public void write(SWIGTYPE_p_std__string str, boolean crLf) {
    nelmiscJNI.CMemDisplayer_write__SWIG_3(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(str), crLf);
  }

  public void write(SWIGTYPE_p_std__string str) {
    nelmiscJNI.CMemDisplayer_write__SWIG_4(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(str));
  }

  public SWIGTYPE_p_std__dequeT_std__string_t lockStrings() {
    return new SWIGTYPE_p_std__dequeT_std__string_t(nelmiscJNI.CMemDisplayer_lockStrings(swigCPtr, this), false);
  }

  public void unlockStrings() {
    nelmiscJNI.CMemDisplayer_unlockStrings(swigCPtr, this);
  }

  public void clear() {
    nelmiscJNI.CMemDisplayer_clear(swigCPtr, this);
  }

}
